home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / win / pascal / frameoh.exe / README.DOC < prev    next >
Encoding:
Text File  |  1993-02-12  |  1.6 KB  |  38 lines

  1. Freunde, 
  2.  
  3. The unit FRAMEDLG.PAS implements a number of objects that allow the user to
  4. give a dialog the Borland chisseled steel lock without having to use
  5. BWCC.DLL.
  6.  
  7. To use these objects create a dialog with Resource Workshop. Place a static
  8. control at those places where you want the raissed or recessed frames to
  9. appear. Set the Static Style control types to Black frame and assign a
  10. valid control id to the control. One last think to take care of: Make the
  11. static controls that will be displayed by the app as recessed or raised
  12. frames the first controls in the control order.
  13.  
  14. In your Pascal program create the static controls with a call to
  15. PFrameUp.InitResource or PFrameDown.InitResource. That should be all that
  16. it takes. Please note that if the content of any controls that are inside
  17. of these frames are changed from another dialog you might have to call
  18. InvalidateRect to force them to repaint. Otherwise they might not get draw
  19. correctly by Windows. Line 255 - 259 in STATIC.PAS demonstrates such a case.
  20.  
  21. FRAMEDLG.PAS implements the objects PSteelDlgWindow and PSteelDialog to
  22. display dialog windows that look similar to Borland's dialog boxes using
  23. BWCC.
  24.  
  25. The source code both in STATIC.PAS and in FRAMEDLG.PAS should be
  26. self-explaining. To fully understand STATIC.PAS take a look at the RC or
  27. RES file in Resource Workshop as well. Note the various style bit for the
  28. static controls and the control numbering.
  29.  
  30. If you want your frames to look different than the ones implemented by
  31. FRAMEDLG.PAS overwrite the PaintFrame method in objects derived from
  32. TFrameUp and TFrameDown.
  33.  
  34. Good luck!  
  35.  
  36.  
  37. Olaf Hess, CIS-ID 100 031, 35 36
  38.